package com.tj.collection.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/7/29
 * Time: 下午5:41
 */
@Configuration
public class ValidateConfig {

    @Bean
    MethodValidationPostProcessor methodValidationPostProcessor() {
        return new MethodValidationPostProcessor();
    }
}
